﻿@model IEnumerable<PersonalFinances.Models.Note>
@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>
<p>
    To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
</p>
<ul>
@{var months = Model.Select(note => new DateTime(note.Date.Year,note.Date.Month,1)).ToList().Distinct();
  foreach (var m in months)
  {
      <li>
        @Html.ActionLink(m.Month + "/" + m.Year,"ShowMonth",new {month = m})
      </li>
  }
  
}
</ul>
<p> ate logo</p>